using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using BA.DAL;
using Microsoft.VisualBasic;

namespace BlazeApps.Library.WorkFlow
{
    public class PublishPage: Base
    {
        private BA.DAL.DBUtility DAL = new BA.DAL.DBUtility();
        private Procedures Procs = new Procedures();

        public void PushWorkingDataToLive(Guid PageID)
        {
            DAL.CreateDBObjects(ConnectionString, Provider);

            DAL.AddParameter("@pageid", PageID);

            DAL.ExecuteNonQuery(Procs.MovePageDataToLive.ToString().Trim(), CommandType.Text, ConnectionState.Open);
        }
    }
}
